package com.apes.scm.masterdata.product.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.product.model.CategoryTag;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CategoryTagRepository extends CustomRepository<CategoryTag, String> {

    @Query(value = "select a.name  from CategoryTag a  where a.category.id=:id")
    List<String> findByCategory(@Param("id") String id);

}
